package com.ruoyi.slope.data.weather.mapper;

import java.util.List;
import com.ruoyi.slope.data.weather.domain.SlopeWeatherData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 气象监测数据Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-02
 */
@Mapper
public interface SlopeWeatherDataMapper 
{

    public void scanned();

    /**
     * 根据设备 SN 查询最新降雨量数据
     */
    SlopeWeatherData selectLatestRainfall(@Param("deviceSn") String deviceSn);

    /**
     * 根据设备 SN 查询最新气温数据
     */
    SlopeWeatherData selectLatestTemperature(@Param("deviceSn") String deviceSn);

    public List<SlopeWeatherData> warningSelectSlopeWeatherDataList(SlopeWeatherData slopeWeatherData);

    /**
     * 查询气象监测数据
     * 
     * @param id 气象监测数据主键
     * @return 气象监测数据
     */
    public SlopeWeatherData selectSlopeWeatherDataById(Long id);

    /**
     * 查询气象监测数据列表
     * 
     * @param slopeWeatherData 气象监测数据
     * @return 气象监测数据集合
     */
    public List<SlopeWeatherData> selectSlopeWeatherDataList(SlopeWeatherData slopeWeatherData);

    /**
     * 新增气象监测数据
     * 
     * @param slopeWeatherData 气象监测数据
     * @return 结果
     */
    public int insertSlopeWeatherData(SlopeWeatherData slopeWeatherData);

    /**
     * 修改气象监测数据
     * 
     * @param slopeWeatherData 气象监测数据
     * @return 结果
     */
    public int updateSlopeWeatherData(SlopeWeatherData slopeWeatherData);

    /**
     * 删除气象监测数据
     * 
     * @param id 气象监测数据主键
     * @return 结果
     */
    public int deleteSlopeWeatherDataById(Long id);

    /**
     * 批量删除气象监测数据
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSlopeWeatherDataByIds(Long[] ids);
}
